TextShape AddText

Add Text to the shape

Overloads

public void AddText(string text, string fontName, int fontStyle, float height, float gap)
public void AddText(string text, string fontName, FontStyle fontStyle, float height, float gap)

 

Return value

void  

 

Parameters

string text The text associated with the shape
string fontName Font name to be use
FontStyle fontStyle Font style to be use
float height Height of the text
float gap Character gap

 

Example

Copy
TextShape textShape = new TextShape();
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;

textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);